package com.wn;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.gateway.filter.factory.StripPrefixGatewayFilterFactory;
import org.springframework.cloud.gateway.handler.predicate.MethodRoutePredicateFactory;
import org.springframework.cloud.gateway.handler.predicate.PathRoutePredicateFactory;
import org.springframework.cloud.gateway.handler.predicate.RoutePredicateFactory;

import java.util.HashMap;

/**
 * @author yellow Docter
 * @date 2023 -02-22
 * @desc
 *
 * RoutePredicateFactory  会加载断言工厂
 * 	 predicates:
 *         - Method=GET    MethodRoutePredicateFactory   方法断言
 *
 */
@SpringBootApplication
public class GatewayApplication {

    RoutePredicateFactory a;

    MethodRoutePredicateFactory methodRoutePredicateFactory;

    PathRoutePredicateFactory pathRoutePredicateFactory;

    //过滤器断言工作
    StripPrefixGatewayFilterFactory stripPrefixGatewayFilterFactory;

    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class,args);
    }

}
